package main
import (
	"net"
	"../pike"
	"time"
)

type Session struct {
	IP             net.IP         // ip
	MQ             chan IPCObject // message objcet
	Encoder        *pike.Pike
	Decoder        *pike.Pike

	User           *User

	Flag           int32

	ConnectTime    time.Time      // tcp connect time
	PacketTime     time.Time      // last packet time
	LastPacketTime time.Time      // last packet arrived time
	_dirtycount    time.Time      // dirty ops count

	PacketCount    int64          // count packet

}
